package com.ggh.jinjilive.utils.live;


import com.blankj.utilcode.util.LogUtils;
import com.ggh.jinjilive.common.Constants;


public class LiveMessageUtils {

    public static void onPushStart(int code){
        switch (code) {
            case Constants.PLAY_STATUS_SUCCESS:
                LogUtils.d("开启推流成功");
                break;
            case Constants.PLAY_STATUS_INVALID_URL:
                LogUtils.d("推流地址不合法，目前支持rtmp推流");
                break;
            case Constants.PLAY_STATUS_LICENSE_ERROR:
                LogUtils.d("License 校验失败");
                break;

        }
        if (code != Constants.PLAY_STATUS_INVALID_URL) {
            LogUtils.d("检查地址合法性");
        }
    }

}
